package com.example.seataone.controller;

import com.example.seataone.service.OneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OneController {

    @Autowired
    private OneService oneService;

    @GetMapping("/hello")
    public int ok(){
        oneService.hello();
        return 1;
    }
}
